﻿namespace HotSwap.Core;

public class DomainLoadContextModule
{
    public HotSwapLoadContext HotSwapLoadContext { get; set; }

    public WeakReference WeakReference { get; set; }

    public string domainName { get; set; }

    public DomainLoadContextModule(HotSwapLoadContext hotSwapLoadContext, string domainName)
    {
        HotSwapLoadContext = hotSwapLoadContext;
        WeakReference = new WeakReference(hotSwapLoadContext, trackResurrection: true);
        this.domainName = domainName;
    }
}